<template>
	<view class="layout">
		<scroll-view scroll-y="true" class="scroll" ref='scroll'>
			<view></view>
		</scroll-view>
		<life-demo v-if="show"></life-demo>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true

			}
		},
		methods: {

		},
		created() {
			// 注意查看官网的uniapp生命周期--教程,右边--生命周期
			setTimeout(() => {
				this.show = false
			}, 2000)
		},
		mounted() {
			console.log('子组件加载')
		}
	}
</script>

<style lang="scss" scoped>

</style>